package com.hebeiwangxiaozhang.admin.repo;

import com.hebeiwangxiaozhang.admin.pojo.CommodityCategoryBrand;
import com.hebeiwangxiaozhang.admin.pojo.CommodityCategoryBrandPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommodityCategoryBrandRepository extends JpaRepository<CommodityCategoryBrand, CommodityCategoryBrandPK> {

    List<Long> getByCategoryId(Long categoryId);

    void deleteByBrandId(Long brandId);

    void deleteByCategoryId(Long categoryId);

}
